import http from '../../until/http'
export const NewAdmin = async (username: string,phone: string) => {
    return await http.post('/weixin/addAdmin',{
        username,
        phone
    })
}

// 修改项目负责人编号
export const updateAdminInfo = async (id:number,username: string,phone: string) => {
    return await http.put('/weixin/updateAdmin',{
        name: username,
        phone,
        id
    })
    
}

// 删除项目负责人
export const deleteAdmin = async (id: number) => {
    return await http.delete('/weixin/removeAdmin/' + id)
}